import { defineConfig } from "wxt";
import path from "path";
// See https://wxt.dev/api/config.html
export default defineConfig({
  modules: ["@wxt-dev/module-react"],
  manifest: {
    // 访问存储、标签页、脚本注入与通知所需权限
    permissions: ["storage", "tabs", "scripting", "notifications"],
    // 与内容脚本/脚本注入相匹配的站点权限
    host_permissions: ["*://*.xiaohongshu.com/*"],
  },
  alias: {
    "@popup": path.resolve(__dirname, "entrypoints/popup"),
    "@content": path.resolve(__dirname, "entrypoints/content"),
    "@background": path.resolve(__dirname, "entrypoints/background"),
    "@utils": path.resolve(__dirname, "utils"),
  },
});
